import axios from 'axios'
const serve = axios.create({
  baseURL: '/api',
  timeout: 10000
})
// 配置请求拦截器（统一携带token）1.成功2.失败
serve.interceptors.request((config) => {
  return config
}, (error) => {
  return Promise.reject(error)
})
export default serve
